package com.bonc.rms.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.bonc.rms.dao.PetGoodsDao;
import com.bonc.rms.mapper.PetGoodsMapper;

@Repository(value = "petGoodsDaoImpl")
public class PetGoodsDaoImpl implements PetGoodsDao{
	@Autowired
	PetGoodsMapper petGoodsMapper;

	@Override
	public List<Map<String, Object>> getFoodsInfo() {
		return petGoodsMapper.getFoodsInfo();
	}

	@Override
	public List<Map<String, Object>> getSingleFoodInfo(Integer foodId) {
		return petGoodsMapper.getSingleFoodInfo(foodId);
	}

	@Override
	public List<Map<String, Object>> updateFoodInfo(Integer foodId, String foodName, String inventory, String pic,
			String price, String quality, String sold) {
		return petGoodsMapper.updateFoodInfo(foodId, foodName, inventory, pic,
				price, quality, sold);
	}

	@Override
	public Object deleteFoodInfo(Integer foodId) {
		return petGoodsMapper.deleteFoodInfo(foodId);
	}

}
